//
//  sumitup2ViewController.h
//  sumitup2
//
//  Created by Maelyss FARGES on 28/10/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "mainMenu.h"

@interface sumitup2ViewController : UIViewController <something> {
	UILabel *label_score;
	UILabel *label_target;
	UILabel *label_status;
	//UILabel *label_currentSelection2;
	UILabel *label_result;
	UILabel *label_time;
	//NSNumber result;

	UIButton *button[15];
	int button_count;
	int button_answer[2];
	bool finish;
	
	int score;
	
	int fromNumber;
	int toNumber;
	
	int countdown;
	int countup;
	NSTimer *countdownTimer;
	float turn_velocity;
	float turn;
	bool turn_check;
	
	bool endGame;
	

}

@property (nonatomic,retain) IBOutlet UILabel *label_score;
@property (nonatomic,retain) IBOutlet UILabel *label_time;
@property (nonatomic,retain) IBOutlet UILabel *label_target;
@property (nonatomic,retain) IBOutlet UILabel *label_status;
//@property (nonatomic,retain) IBOutlet UILabel *label_currentSelection2;
@property (nonatomic,retain) IBOutlet UILabel *label_result;



- (void)addButton;
- (void)newButton;
- (IBAction)addCurrentSelection:(id)sender;
- (IBAction)goMainMenu;
- (void)hitTheTarget;

- (void)advanceTimer:(NSTimer *)timer;
- (void)startCountdown;

- (void)printScore;
- (void)newGame;

@end

